<?php echo $this->element('body_help');?>
<?php echo $this->element('breadcrumb');?>
<div class="wrap">
<div id="icon-users" class="icon32"><br></div>
<h2>
	<?php __('Lĩnh vực đăng ký');?>
	<a class="button add-new-h2" href="<?php echo $this->webroot;?>project_categories/add"><?php __('Thêm mới');?></a>
</h2>
<?php echo $this->Session->flash();?>
<br/>
<form action="" method="get">
<div class="tablenav top">

	<div class="alignleft actions">
	<select name="action">
	<option value="-1" selected="selected">Tác vụ</option>
	<option value="remove">Xóa</option>
	</select>
	<input name="" id="doaction" class="button-secondary action" value="Thực hiện" type="submit">
	</div>
<br class="clear">
</div>

<table class="wp-list-table widefat fixed users" cellspacing="0">
	<thead>
		<tr>
			<th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input type="checkbox"></th>
			<th scope="col" id="name" class="manage-column column-name sortable desc" style="">
				<span><?php echo $this->Paginator->sort('Tên lĩnh vực','name');?></span></th>
			<th style="" class="manage-column column-date sortable asc" id="date" scope="col">
				<span><?php echo $this->Paginator->sort('Ngày tạo','created');?></span></th>
			<th style="" class="manage-column column-date sortable asc" id="date" scope="col">
				<span><?php echo $this->Paginator->sort('Ngày sửa đổi','modified');?></span></th>
		</tr>
	</thead>

	<tfoot>
		<tr>
			<th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input type="checkbox"></th>
			<th scope="col" id="name" class="manage-column column-name sortable desc" style="">
				<span><?php echo $this->Paginator->sort('Tên Lĩnh vực','name');?></span></th>
			<th style="" class="manage-column column-date sortable asc" id="date" scope="col">
				<span><?php echo $this->Paginator->sort('Ngày tạo','created');?></span></th>
			<th style="" class="manage-column column-date sortable asc" id="date" scope="col">
				<span><?php echo $this->Paginator->sort('Ngày sửa','modified');?></span></th>
		</tr>
	</tfoot>

	<tbody id="the-list" class="list:user">
		<?php
			$i = 0;
			foreach ($projectCategories as $projectCategory):
				$class = null;
				if ($i++ % 2 == 0) {
					$class = ' class="alternate"';
				}
				$id= $projectCategory['ProjectCategory']['id'];
			?>
			<tr <?php echo $class;?>>
				<th scope="row" class="check-column"><input name="gourps_<?php echo $id;?>" id="gourps_<?php echo $id;?>" class="contributor" value="<?php echo $id;?>" type="checkbox"></th>
				<td class="username column-username">
					<img id="group_icon" alt="" src="<?php echo $this->webroot;?>img/project_categories.png" class="avatar avatar-32 grav-hashed grav-hijack" height="32" width="32">
					<strong><?php echo $projectCategory['ProjectCategory']['name']; ?>&nbsp;</strong><br>
					<div class="row-actions">
						<span class="remove">
							<?php echo $this->Html->link(__('Xem', true), array('action' => 'view', $projectCategory['ProjectCategory']['id'])); ?>
						</span>&nbsp;|&nbsp;
						<span class="remove">
							<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $projectCategory['ProjectCategory']['id'])); ?>
						</span>|&nbsp;
						<span class="remove">
							<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $projectCategory['ProjectCategory']['id']), null, sprintf(__('Có muốn xóa # %s?', true), $projectCategory['ProjectCategory']['name'])); ?>
						</span>|&nbsp;
						<span class="remove">
							<?php echo $this->Html->link(__('Phân công giáo viên', true), array('controller'=>'project_assigns','action' => 'add/'.$projectCategory['ProjectCategory']['id'])); ?>
						</span>
					</div>
				</td>
				<td class="date column-date">
					<abbr title="<?php echo $projectCategory['ProjectCategory']['created']; ?>"><?php echo $projectCategory['ProjectCategory']['created']; ?></abbr>
				</td>
				<td class="date column-date">
					<abbr title="<?php echo $projectCategory['ProjectCategory']['modified']; ?>"><?php echo $projectCategory['ProjectCategory']['modified']; ?></abbr>
				</td>
			
			</tr>
		<?php endforeach; ?>	
	</tbody>
</table>
<div class="tablenav bottom">
	<div class="alignleft actions">
		<select name="action2">
			<option value="-1" selected="selected">Tác vụ</option>
			<option value="remove">Xóa</option>
		</select>
		<input name="" id="doaction2" class="button-secondary action" value="Thực hiện" type="submit">
	</div>
	<div class="tablenav-pages">
	<span class="displaying-num"><?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page% của %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?></span>
	<a href="#" title="Go to the first page" class="first-page"><?php echo $this->Paginator->prev(__('<<', true), array(), null, array('class'=>'disabled'));?></a>
	<span class="paging-input">| 	<?php echo $this->Paginator->numbers();?>
 |</span></span>
	<a href="#" title="Go to the last page" class="last-page"><?php echo $this->Paginator->next(__('>>', true), array(), null, array('class' => 'disabled'));?></a>
	</div>
</div>
</form>

<!--
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Project Category', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Project Assigns', true), array('controller' => 'project_assigns', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Assign', true), array('controller' => 'project_assigns', 'action' => 'add')); ?> </li>
	</ul>
</div>
-->


<br class="clear">
<div class="clear"></div>
</div><!-- wrap -->